<%--
 @Author:princess
 @Date 2023/11/29 11 29 18:46
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>上传</title>
</head>
<body>
<%--
    对于上传而言 第一需要实现 表单的提交方式为post
                需要设置 enctype="multipart/form-data"
                表单中至少有一个文件域
--%>
<form action="upload01" method="post" enctype="multipart/form-data">
    <input type="file" name="headImg">
    <input type="submit" value="提交">
</form>

<form action="upload02" method="post" enctype="multipart/form-data">
    <input type="text" name="username">
    <input type="text" name="password">
    <input type="file" name="headImg">
    <input type="submit" value="提交">
</form>

<form action="upload03" method="post" enctype="multipart/form-data">
    <input type="file" name="headImg">
    <input type="file" name="headImg">
    <input type="submit" value="提交">
</form>
</body>
</html>
